﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;

namespace QuanLyBanHang_N3A
{
    public partial class FormTheoDoiBH : Form
    {
        public FormTheoDoiBH()
        {
            InitializeComponent();
        }
        public string MaNV;
        public string LayTenNV(string MaNV)
        {
            List<NhanVienDTO> ds = new List<NhanVienDTO>();
            NhanVienBUS bus = new NhanVienBUS();
            ds = bus.LayThongTinNhanVien(MaNV);
            return ds[0].TenNV.ToString();
        }

        private void FormTheoDoiBH_Load(object sender, EventArgs e)
        {
            lbtenNV.Text = LayTenNV(MaNV);
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
